package com.yx1996.test.day03;

import com.yx1996.bean.day03.tx.AccountService.AccountService;
import com.yx1996.bean.day03.tx.AccountService.AccountServiceImpl;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.test.context.ContextConfiguration;
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;

import javax.annotation.Resource;

/**
 * 测试银行转账
 */
@RunWith(SpringJUnit4ClassRunner.class)
@ContextConfiguration("classpath:day03.xml")
public class testAccount {

    @Resource(name = "accountService")
    private AccountService as;

    @Test
    public void fun1(){

        as.account(1,2,500d);
    }
}
